{extend name="template/base" /}
{block name="content"}
<div class="page-container">
<form class="form form-horizontal" id="form" method="post" action="{:\\think\\Url::build('export')}">
        <div class="row cl">
            <label class="form-label col-xs-1"><span class="c-red">*</span>名称：</label>
            <div class="formControls col-xs-8">
            <input type="text" class="input-text" placeholder="名称"  errormsg="请输入正确的格式" 
                       datatype="/^.+$/" nullmsg="请输入名称" name="title" style="width: 30%">
            </div>
            <div class="col-xs-2"></div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-1"><span class="c-red">*</span>数量：</label>
            <div class="formControls col-xs-8">
            <input type="text" class="input-text" placeholder="数量"  errormsg="请输入正确的格式" 
                       datatype="/^\d+$/" nullmsg="请输入数量" name="num" style="width: 30%">
            </div>
            <div class="col-xs-2"></div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-1"><span class="c-red">*</span>格式：</label>
            <div class="formControls col-xs-8">
                <input type="text" class="input-text" errormsg="请输入正确的格式" datatype="/^\w+$/" placeholder="品牌名称" name="ppmc" style="width: 10%">-
                <input type="text" class="input-text" errormsg="请输入正确的格式" datatype="/^\w+$/" placeholder="生产厂商" name="sccj" style="width: 10%">-
                <input type="text" class="input-text" errormsg="请输入正确的格式" datatype="/^\w+$/" placeholder="产品型号" name="cpxh" style="width: 10%">-
                <input type="text" class="input-text" errormsg="请输入正确的格式" datatype="/^\w+$/" placeholder="颜色" name="yanse" style="width: 10%">-
                <input type="text" class="input-text" errormsg="请输入正确的格式" datatype="/^\w+$/" placeholder="尺寸" name="chicun" style="width: 10%">-
                <input type="text" class="input-text" value="{$todaydate}" errormsg="请输入正确的格式" datatype="/^\w+$/" placeholder="生产日期" name="scriqi" style="width: 10%">
            </div>
            <div class="col-xs-2"></div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-xs-offset-1">
                <button type="submit" class="btn btn-primary radius">&nbsp;&nbsp;确认生成&nbsp;&nbsp;</button>
            </div>
        </div>
</form>    
</div>

{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script>
    $(function () {

        $("#form").Validform({
            tiptype:2,
            ajaxPost:true,
            showAllError:true,
            callback:function(ret){
                ajax_progress(ret);
            }
        });
		
    })
</script>
{/block}